#include "MinersWife.h"
#include "Core\GameTime.h"

using namespace CasaEngine;

bool MinersWife::HandleMessage(const Telegram& msg)
{
  return m_pStateMachine->HandleMessage(msg);
}


void MinersWife::Update( const GameTime& gameTime_ )
{
	const float delayMax = 0.8f;

	m_Delay += gameTime_.FrameTime();

	//used to create some latency between each update
	if (m_Delay > delayMax)
	{
		m_Delay -= delayMax;
		m_pStateMachine->Update();
	}  
}